<%@include
    file="/WEB-INF/jsp/taglibs/taglibs.jsp"
%>
<stripes:layout-render name="/WEB-INF/jsp/layouts/menu.jsp" title="Manage urls">
<stripes:layout-component name="body">
    <stripes:messages />

    <stripes:form name="authUrls" beanclass="com.objecteffects.ilmp.web.action.AuthUrlsActionBean">
        <stripes:errors />


        <c:choose>
            <c:when test="${fn:length(actionBean.tumblrUrls) <= 0}">
                No tumblr urls are managed here (yet).
            </c:when>
            <c:otherwise>
                <p class="text">
                    <table>
                        <c:forEach var="url" items="${actionBean.tumblrUrls}" varStatus="counter">
                            <tr>
                                <td>
                                    <stripes:checkbox
                                        name="selectedUrls"
                                        value="${url}"
                                    />
                                <td>
                                <td>
                                    ${url}
                                </td>
                            </tr>
                        </c:forEach>
                    </table>
                </p>

                <p class="buttons">
                    <stripes:submit
                        name="proceed"
                        value="No more love for this url"
                    />
                    <stripes:submit
                        name="cancel"
                        value="Cancel"
                    />
                </p>
            </c:otherwise>
        </c:choose>
    </stripes:form>
</stripes:layout-component>
</stripes:layout-render>
